<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>用户角色授权</legend>
        </fieldset>

        <form class="layui-form" lay-filter="submitForm" action="">
            <input type="hidden" name="resId" value="">

            <div class="layui-form-item">
                <label class="layui-form-label">角色列表</label>
                <div class="layui-input-block">
                    {{range $key, $value := .listData}}
                        {{if $value.IsEnable}}
                            <input class="role" type="checkbox" name="role[{{$value.Id}}]" value="{{$value.Id}}" title="{{$value.Title}}" >
                        {{else}}
                            <input class="role" type="checkbox" name="role[{{$value.Id}}]"  value="{{$value.Id}}"  disabled="" title="{{$value.Title}}" >
                        {{end}}
                    {{end}}
                </div>
            </div>
            <div class="layui-form-item">

            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button id="cancelAdd" class="layui-btn layui-btn-danger">关闭</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <button  id="submitForm" class="layui-btn">立即提交</button>
                </div>
            </div>
        </form>

    </div>
</div>